<?php

namespace YouBaoLian\Application\Callback;

class VehiclePaymentRequest extends CallbackRequest
{

    /**
     * 状态
     * @var int $status
     */
    private $status = 0;

    /**
     * 支付时间
     * @var string $payDate
     */
    private $payDate = '';

    /**
     * 支付总金额
     * @var int $payAmount
     */
    private $payAmount = 0;

    /**
     * 支付信息
     * @var array $infoList
     */
    private $infoList = [];

    public function construe(): CallbackRequest
    {
//        parent::construe();
        $this->status = $this->getBizContent('status', 0);
        $this->payDate = $this->getBizContent('payDate');
        $this->payAmount = $this->getBizContent('payAmount', 0);
        $this->infoList = $this->getBizContent('infoList', []);
        return $this;
    }

    /**
     * @return int
     */
    public function getStatus(): int
    {
        return $this->status;
    }

    /**
     * @return string
     */
    public function getPayDate(): string
    {
        return $this->payDate;
    }

    /**
     * @return int
     */
    public function getPayAmount(): int
    {
        return $this->payAmount;
    }

    /**
     * @return array
     */
    public function getInfoList(): array
    {
        return $this->infoList;
    }

}